package cn.kxm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.AreaMapper;
import cn.kxm.pojo.Area;
import cn.kxm.service.AreaService;
@Service
public class AreaServiceImpl implements AreaService{

	@Autowired
	private AreaMapper areaMapper;
	@Override
	public List<Area> getAreaByPid(Integer pid) {
		return areaMapper.getAreaByPid(pid);
	}
	@Override
	public List<Area> getAreaById(Integer id) {
		return areaMapper.getAreaById(id);
	}

}
